import sqlite3
import pandas as pd
from pandas import DataFrame




def compute_feature(data:DataFrame):

    ...


if __name__ == '__main__':
    df = pd.DataFrame()
    code = '300308'
    with sqlite3.connect('example.db') as conn:
        df = pd.read_sql(f'select * from stock_zh_a_hist_daily where `股票代码` = {code} order by `日期` desc limit 10',conn)
    compute_feature(df)
    ...
